console.log('加载page_anli_index.js');
//从其他页面加载页面
myApp.onPageInit('design_trip_anli_index', function (page) {
	console.log('page design_trip_anli_index load');
	//开启loader
	myApp.showIndicator();
	//修改页面title,有bug,作废
	//document.title='哇吖·定制案例';
	//$$(document).find('title').html('哇吖·定制案例');
	//加载页面
	$$.ajax({
	    url:url_get_design_trip_anli_index,
	    method:"GET",
		data:{},
		dataType:'json',
		success: function (ajaxresult) {             
		    if(ajaxresult.code==1){
		    	//获取列表数据
		        var data_anli_index = ajaxresult.data;
		        //console.log(data_anli_index);
		        
		        //写入列表模板
		        var html_anli_index = myApp.designTripAnliIndexTemplate(data_anli_index);
		        $$('#design_trip_anli_index .page-content').html(html_anli_index);
		        
		        //swiper布局初始化
		        var anliindexswiper = new Swiper('.swiper-anli-index', {
          	  		loop:true,
          	  		speed:800
                });
		        
   		        //关闭loader
		        myApp.hideIndicator();
		        
		    }else{
		  	  myApp.alert(ajaxresult.msg);
		    }
		}
	});
});
